<?php
/**
 * Created by PhpStorm.
 * User: xsh
 * Date: 2018/4/25  11:24
 */
namespace app\home\Controller;
use think\Controller;

class Project extends Base
{
    /*
    *	构造函数
    */
    function __construct()
    {
        parent::__construct();
    }

    public function industry()
    {
        $data = db('project')->where('id', 'not in', 1)->select();
        $da = db('project')->field('title, content')->where('id', 1)->find();

        $this->assign('data', $data);
        $this->assign('da', $da);
        return $this->fetch();
    }

    public function industry_page()
    {
        $id = input('id');
        $data = db('project')->where('id', $id)->find();
        $this->assign('data', $data);
        return $this->fetch();
    }
}